﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace FeatureServer.Modules
{
    public class StatesCitiesRivers_FeatureLayer_Feature:Nancy.NancyModule
    {
        public StatesCitiesRivers_FeatureLayer_Feature()
            : base("/rest/services/StatesCitiesRivers/FeatureServer/0/0")
        {
            Get["/"]=parameters=>
            {

                var feature = new GISServer.Core.Client.Feature();
                feature.Geometry = new GISServer.Core.Client.Geometry.Point(-122.46818353792992, 48.743879854364899);
                feature.Attributes = new GISServer.Core.Client.Attributes("CITY_NAME", "Bellingham"); 
                return Services.Utilities.GetJsonResponseObject(feature.ToJson());
            };
        }
    }
}